//
//  ViewController.m
//  ZJLAreaPcikerView
//
//  Created by HiPal on 16/2/25.
//  Copyright © 2016年 Hipal. All rights reserved.
//

#import "ViewController.h"
#import "HSZJLAreaPickView.h"

@interface ViewController ()<HSZJLAreaPickViewDelegate>
- (IBAction)addPickerView:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)addPickerView:(id)sender {
    HSZJLAreaPickView *pickView = [[NSBundle mainBundle] loadNibNamed:@"HSZJLAreaPickView" owner:self options:nil][0];
    pickView.frame = CGRectMake(0, 0, 320   , 560);
    pickView.delegate = self;
    [self.view addSubview:pickView];
}
- (void)hsZJLAreaPickView:(HSZJLAreaPickView *)pickView {
    NSLog(@"%@,%@,%@,%@",pickView.province,pickView.city,pickView.area,pickView.zipcode);
}
@end
